package cn.wen233.core.service.impl;

import cn.wen233.basic.model.InstanceRecord;
import cn.wen233.core.mapper.InstanceRecordMapper;
import cn.wen233.core.service.InstanceRecordService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * @author wenjie
 * @date 2022-05-07 15:11
 */
@org.springframework.stereotype.Service
@Slf4j
@RequiredArgsConstructor
public class PersistenceInstanceRecordServiceImpl implements InstanceRecordService {

    private final InstanceRecordMapper instanceRecordMapper;

    @Override
    public void create(InstanceRecord instanceRecord) {
        instanceRecord.setVisitTime(System.currentTimeMillis());
        instanceRecordMapper.insertInstanceRecord(instanceRecord);
    }
}
